package cn.com.dcsgo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 用户状态枚举类
 *
 * @author Dcsgo
 * @since 2025/9/28 10:50
 */
@Getter
public enum UserStatusEnum {
    DISABLED(0, "禁用"),
    NORMAL(1, "正常");

    @EnumValue // 标记数据库存储值
    private final int code;
    private final String desc;

    UserStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
